﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<iss.sg4210.se18.team6s.jass.DAL.Advertisement>>" %>
<table>
    <tr>
        <th>
        </th>
        <th>
            Title
        </th>
        <th>
            Description
        </th>
        <th>
            Experience In Years
        </th>
        <th>
            Salary From
        </th>
        <th>
            Salary To
        </th>
        <th>
            Start Date
        </th>
        <th>
            Location
        </th>
        <th>
            Company
        </th>
        <th>
            Advertisement Type
        </th>
    </tr>
    <% foreach (var item in Model)
       { %>
    <tr>
        <td>
            <%: Html.ActionLink("Apply", "Create", "Response", new { id = item.Id }, new object { })%>
        </td>
        <td>
            <%: Html.ActionLink(item.Title, "Details", new { id = item.Id })%>
        </td>
        <td>
            <%: item.Description %>
        </td>
        <td>
            <%: item.ExperienceInYears %>
        </td>
        <td>
            <%: item.SalaryFrom %>
        </td>
        <td>
            <%: item.SalaryTo %>
        </td>
        <td>
            <%: String.Format("{0:g}", item.StartDate) %>
        </td>
        <td>
            <%: item.GeoArea.Name %>
        </td>
        <td>
            <%: item.Company.Name %>
        </td>
        <td>
            <%: item.AdvertisementType.Type %>
        </td>
    </tr>
    <% } %>
</table>
